package com.aegean.MonitorExamSYS.android.business.impl;

import java.io.File;
import java.sql.Blob;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aegean.MonitorExamSYS.android.business.AndroidBusiness;
import com.aegean.MonitorExamSYS.android.component.ExamineeExam;
import com.aegean.MonitorExamSYS.android.dao.AndroidDao;
import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.aegean.MonitorExamSYS.center.dao.CenterDao;
import com.aegean.MonitorExaxSYS.model.BigType;
import com.aegean.MonitorExaxSYS.model.CenterValue;
import com.aegean.MonitorExaxSYS.model.ExamInfo;
import com.aegean.MonitorExaxSYS.model.ExamineeValue;
import com.aegean.MonitorExaxSYS.model.SmallType;
import com.aegean.MonitorExaxSYS.model.UserValue;
@Service
@Transactional
public class AndroidBusinessImpl implements AndroidBusiness {
	@Resource
	AndroidDao dao;

	@Override
	public Object loginUserForAndroid(int status,String name,String pwd,int unit_Id) throws Exception{
		// TODO Auto-generated method stub
		return dao.loginUserForAndroid(status, name, pwd,unit_Id);
	}

	@Override
	public UserValue showPhoto(int user_Id) throws Exception {
		// TODO Auto-generated method stub
		return dao.showPhoto(user_Id);
	}

	@Override
	public boolean updatePhoto(int user_Id, File photo, String photoFileName,
			String photoContentType) throws Exception {
		// TODO Auto-generated method stub
		return dao.updatePhoto(user_Id, photo, photoFileName, photoContentType);
	}

	@Override
	public List<ExamineeExam> showExamList(int user_Id,int start,int limit) {
		// TODO Auto-generated method stub
		return dao.showExamList(user_Id, start, limit);
	}

	public int showExamListCount(int user_Id) {
		// TODO Auto-generated method stub
		return dao.showExamListCount(user_Id);
	}

	@Override
	public boolean editorExamineeStatus(int user_Id, String comments,int status) {
		// TODO Auto-generated method stub
		return dao.editorExamineeStatus(user_Id, comments,status);
	}

	@Override
	public Map<String, String> showExamineeStatus(int user_id) {
		// TODO Auto-generated method stub
		return dao.showExamineeStatus(user_id);
	}


}
